package com.wali.modules.system.vo;

import java.io.Serializable;
import java.util.Objects;

/**
 * @author walixu
 * @ClassName com.wali.modules.system.vo
 * @Description 用户VO类
 * @email wali.xu@kpmg.com
 * @date 11/11/2018 7:39 下午
 */
public class SysUserVO implements Serializable {

    /**
     * 编号
     */
    private int id;

    /**
     * 用户名
     */
    private String username;

    /**
     * 密码
     */
    private String password;

    /**
     * 姓名
     */
    private String name;

    /**
     * 创建日期
     */
    private String createDate;

    /**
     * 更新日期
     */
    private String updateDate;

    /**
     * 角色编号
     */
    private int roleId;

    /**
     * 角色名称
     */
    private String roleName;

    /**
     * 角色编号
     */
    private int roleType;

    /**
     * 角色登录首页
     */
    private String home;

    /**
     * 用户所属分店编号
     */
    private int storeId;

    /**
     * 用户所属分店编码
     */
    private String storeCode;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getRoleId() {
        return roleId;
    }

    public void setRoleId(int roleId) {
        this.roleId = roleId;
    }

    public String getCreateDate() {
        return createDate;
    }

    public void setCreateDate(String createDate) {
        this.createDate = createDate;
    }

    public String getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(String updateDate) {
        this.updateDate = updateDate;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public int getRoleType() {
        return roleType;
    }

    public void setRoleType(int roleType) {
        this.roleType = roleType;
    }

    public String getHome() {
        return home;
    }

    public void setHome(String home) {
        this.home = home;
    }

    public int getStoreId() {
        return storeId;
    }

    public void setStoreId(int storeId) {
        this.storeId = storeId;
    }

    public String getStoreCode() {
        return storeCode;
    }

    public void setStoreCode(String storeCode) {
        this.storeCode = storeCode;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        SysUserVO sysUserVO = (SysUserVO) o;
        return id == sysUserVO.id &&
                roleId == sysUserVO.roleId &&
                roleType == sysUserVO.roleType &&
                storeId == sysUserVO.storeId &&
                Objects.equals(username, sysUserVO.username) &&
                Objects.equals(password, sysUserVO.password) &&
                Objects.equals(name, sysUserVO.name) &&
                Objects.equals(createDate, sysUserVO.createDate) &&
                Objects.equals(updateDate, sysUserVO.updateDate) &&
                Objects.equals(roleName, sysUserVO.roleName) &&
                Objects.equals(home, sysUserVO.home) &&
                Objects.equals(storeCode, sysUserVO.storeCode);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, username, password, name, createDate, updateDate, roleId, roleName, roleType, home, storeId, storeCode);
    }

    @Override
    public String toString() {
        return "SysUserVO{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", name='" + name + '\'' +
                ", createDate='" + createDate + '\'' +
                ", updateDate='" + updateDate + '\'' +
                ", roleId=" + roleId +
                ", roleName='" + roleName + '\'' +
                ", roleType=" + roleType +
                ", home='" + home + '\'' +
                ", storeId=" + storeId +
                ", storeCode='" + storeCode + '\'' +
                '}';
    }
}
